package com.qiyuan.essay.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.qiyuan.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.elasticsearch.annotations.Document;


/**
 * 文章信息对象 blog_article
 *
 * @author ruoyi
 * @date 2022-04-16
 */
@Data
@Accessors(chain = true)
@TableName("blog_article")
@Document(indexName = "article", shards = 1, replicas = 0)
public class BlogArticle extends BaseEntity {

    private static final long serialVersionUID=1L;

    /**
     * ID
     */
    @TableField(value = "articleHeadPic")
    @TableId(value = "id")
    private Long id;
    /**
     * 文章封面
     */
    @TableField(value = "articleHeadPic")
    private String articleHeadPic;
    /**
     * 文章名称
     */
    @TableField(value = "articleName")
    private String articleName;
    /**
     * 文章标签
     */
    @TableField(value = "articleTag")
    private String articleTag;
    /**
     * 文章简介
     */
    @TableField(value = "articleRemark")
    private String articleRemark;
    /**
     * 文章阅读量
     */
    @TableField(value = "articleReadCount")
    private Long articleReadCount;
    /**
     * 文章状态
     */
    @TableField(value = "articleState")
    private Long articleState;
    /**
     * 是否公开
     */
    @TableField(value = "disclosure")
    private String disclosure;
    /**
     * 作者ID
     */
    @TableField(value = "managerId")
    private Long managerId;
    /**
     * 作者名称
     */
    @TableField(value = "managerName")
    private String managerName;
    /**
     * 文章内容
     */
    @TableField(value = "articleContent")
    private String articleContent;
    /**
     * 文章类型
     */
    @TableField(value = "articleType")
    private Integer articleType;
    /**
     * 文章点赞数
     */
    @TableField(value = "articleStarNum")
    private Long articleStarNum;
    /**
     * 文章评论数
     */
    @TableField(value = "articleConNum")
    private Long articleConNum;
    /**
     * 附件
     */
    @TableField(value = "enclosure")
    private String enclosure;
    /**
     * 首页推荐
     */
    @TableField("topRecommend")
    private String topRecommend;
    /**
     * 好文
     */
    @TableField(value = "good")
    private String good;
    /**
     * 推荐
     */
    @TableField(value = "recommend")
    private String recommend;
    /**
     * 官方
     */
    @TableField(value = "official")
    private String official;
    /**
     * 置顶
     */
    @TableField(value = "top")
    private String top;
    /**
     * 精品
     */
    @TableField(value = "boutique")
    private String boutique;
    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

}
